home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / ldapjdk.jar / netscape / ldap / ber / stream / BERChoice.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-04-13  |  1.1 KB  |  34 lines

  1. package netscape.ldap.ber.stream;
  2.  
  3. import java.io.IOException;
  4. import java.io.InputStream;
  5. import java.io.OutputStream;
  6.  
  7. public class BERChoice extends BERElement {
  8.    private BERElement m_value;
  9.  
  10.    public BERChoice(BERElement var1) {
  11.       this.m_value = var1;
  12.    }
  13.  
  14.    public BERChoice(BERTagDecoder var1, InputStream var2, int[] var3) throws IOException {
  15.       this.m_value = BERElement.getElement(var1, var2, var3);
  16.    }
  17.  
  18.    public void write(OutputStream var1) throws IOException {
  19.       this.m_value.write(var1);
  20.    }
  21.  
  22.    public BERElement getValue() {
  23.       return this.m_value;
  24.    }
  25.  
  26.    public int getType() {
  27.       return -2;
  28.    }
  29.  
  30.    public String toString() {
  31.       return "CHOICE {" + this.m_value + "}";
  32.    }
  33. }
  34.